package org.feiye.studyday17.ink;

public class TestPrinter {

	public static void main(String[] args) {
		Printer p = new Printer("富士康");
		p.SetInk(new BlackAndWhiteInk());
		p.SetPaper(new A4Paper());
		System.out.println(p);
		p.SetInk(new colorfulInk());
		p.SetPaper(new B5Paper());
		System.out.println(p);
		p.SetInk(new colorfulInk());
		p.SetPaper(new A4Paper());
		System.out.println(p);
		p.SetInk(new BlackAndWhiteInk());
		p.SetPaper(new B5Paper());
		System.out.println(p);
	}

}
